<div style="width:100px; height:100px; background-color: red"></div>
<script src="jquery-1.12.4.min.js"></script>
<script>
  var ele = $('div');
  var w = ele.css('width');
  var h = ele.css('height');
  ele.css({border: '2px solid black', backgroundColor: '#ccc'});
  console.log('div元素的宽：' + w + '，高：' + h);
</script>
<p>
  <a href="file:///C:/Users/rise/Desktop/%E9%A6%96%E9%A1%B5/default/11.html">返回</a>
</p>